import request from '@/utils/request'

export function login (user) {
  return request({
    url: 'sys/login',
    method: 'post',
    data: user
  })
}

export function getInfo (token) {
  return request({
    url: 'sys/info',
    method: 'get',
    params: { token: token }
  })
}
